Repository navigation
Drop the impossible false check on ini_get('max_execution_time') - #167
Conversation
PHP always defines max_execution_time, so ini_get() returns a string for it and never false. Psalm 7.19, which the CI job that installs the newest dependencies now gets, rejects the check as TypeDoesNotContainType; the empty-string and is_numeric() checks below still cover every value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
🟢 Coverage ∅ diff coverage · +0.02% coverage variation
Metric Results Coverage variation ✅ +0.02% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (deeb438) 2614 534 20.43% Head commit (ced6ed6) 2612 (-2) 534 (+0) 20.44% (+0.02%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#167) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Thanks for contributing to EngineScript Site Exporter! Before we review:
Security Reminder
We'll review your PR soon. |
Summary
The Psalm job installs the newest dependencies. Since Psalm 7.19 it fails on main's code, as it does on #166:
PHP always defines
max_execution_time, soini_get( 'max_execution_time' )returns a string and neverfalse. This removes that branch. The empty-string andis_numeric()checks after it still return 30 for any unusable value, so the behavior is unchanged.Testing
composer check-all(PHPCS, PHPMD, Psalm, PHPStan, Rector, 230 PHPUnit tests) and Plugin Check on the file pass.🤖 Generated with Claude Code